package com.xzjt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName: SysUser
 * @Author: yuandong
 * @Date 2021/10/8 13:25
 */
@Data
@TableName("sys_user")
public class SysUser implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String nickName;

    private Integer age;

    private String sex;

    private String address;

    private String url; //头像路径

    private Integer isadmin; //是否是超管  1:超管  2：其它

    @TableField(exist = false)
    private Integer roleId;  //用户角色

    @TableField(exist = false)
    private String roleName;  //用户角色名称
}
